package com.chen;

import org.junit.jupiter.api.Test;

import java.util.concurrent.Callable;

/**
 * @author chen
 * @date 2022/5/19 10:13
 */

public class Demo {

    @Test
    public void test1() {
        String tom = "i am a good cat";
        System.out.println(tom.indexOf("good", 2));

        String tom1 = "i am a good cat";
        int c = tom1.indexOf("c");
        tom1.charAt(1);
        System.out.println(c);

    }

}
